package com.example.democrud.employee;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.democrud.employee.pojo.EmployeeDO;
import com.example.democrud.employee.pojo.EmployeeDTO;
import com.example.democrud.employee.pojo.EmployeeVO;

import java.io.OutputStream;
import java.util.List;

/**
 * @ClassName EmployeeService
 * @Author Administrator
 * @Date 2020/4/22   11:52
 */

public interface EmployeeService extends IService<EmployeeDO> {
    /**
     * 新增并返回id
     * @param employeeDTO entity
     * @return
     */
    Long create(EmployeeDTO employeeDTO);

    List<EmployeeVO> retrieve();

    /**
     *
     * @param id employee id
     * @return
     */
    EmployeeVO retrieve(Long id);

    void write(OutputStream outputStream);

    boolean update(EmployeeDTO employeeDTO);
}
